package cn.jly.spring.aop.aspectxml;

/**
 * @author lanyangji
 * @description book的增强类
 * @date 2020/11/11 上午 9:55
 */
public class BookAspect {

    public void before() {
        System.out.println("BookAspect.before");
    }

    public void after() {
        System.out.println("BookAspect.after");
    }

    public void afterReturning(Object res) {
        System.out.println("BookAspect.afterReturning 返回值为 = " + res);
    }

    public void afterThrowing(Exception e) {
        System.out.println("BookAspect.afterThrowing 异常为 = " + e.getMessage());
    }
}
